package com.ydy.common.constant;

/**
 * 常量类
 */
public interface Constant {

    //redis prefix
    final String REDIS_PREFIX = "dict:";

    //系统参数
    final String REDIS_TIMEOUT_TIME = REDIS_PREFIX + "loginTimeOutTime";
    final String SERVE_URL = REDIS_PREFIX + "fileServiceUrl";
    final String CHECK_PERMISSION_SWITCH = REDIS_PREFIX + "ifCheckPermission";
    final String WEB_SOCKET_URL = REDIS_PREFIX + "webSocketUrl";
    final String HEAD_PORTRAIT_URL = REDIS_PREFIX + "headPortraitUrl";

    //map   key

    final String USER_CODE = "userCode";
    final String USER_NAME = "userName";
    final String LOGIN = "login";
    final String DOWNLOAD = "download";


    final String AUTHORIZATION ="Authorization";
    final String CONTENT_TYPE = "Content-Type";
    final String HOST = "Host";
    final String USER_AGENT = "User-Agent";
    final String APPLICATION_JSON  = "application/json";
    final String MULTIPART_FORM_DATA = "multipart/form-data";

    //文件类型
    final String FILE_IMAGE = "image";
    final String IMAGE_TYPE = ".jpg,.jpeg,.png,.gif";
    final String IMAGE_PATH= "/image/";

    final String FILE_PDF = "pdf";
    final String PDF_TYPE = ".pdf";
    final String PDF_PATH = "/pdf/";

    final String FILE_WORD = "word";
    final String WORD_TYPE = ".docx,.doc";
    final String WORD_PATH = "/word/";

    final String FILE_EXCEL = "excel";
    final String EXCEL_TYPE = ".xlsx,.xls";
    final String EXCEL_PATH = "/excel/";

    final String FILE_VIDEO = "video";
    final String VIDEO_TYPE = ".mp4,.wmv";
    final String VIDEO_PATH = "/video/";
}
